package cn.dust.design.pattern.structural.decorator.v1;

/**
 * @Author: dust
 * @Date: 2019/11/26 19:48
 */
public class Test {

    public static void main(String[] args) {
        Battercake battercake=new Battercake();
        System.out.println(battercake.getDesc()+"      "+battercake.cost());

        Battercake battercakeWithEgg =new BattercakeWithEgg();
        System.out.println(battercakeWithEgg.getDesc()+"         "+battercakeWithEgg.cost());

        Battercake battercakeWithEggSausage=new BattercakeWithEggSausage();
        System.out.println(battercakeWithEggSausage.getDesc()+"           "+battercakeWithEggSausage.cost());
    }
}
